package com.itheima.service;

import com.itheima.pojo.Brand;
import com.itheima.pojo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/9/8
 */
public interface BrandService {
    //查询所有
    List<Brand> selectAll();
    //新增品牌
    void addBrand(Brand brand);
    //修改品牌
    void updateBrand(Brand brand);
    //删除品牌
    void deleteBrand(Integer id);
    //批量删除
    void deleteByIds(int[] ids);

    //分页查询 --> 查询数据和数据条数
    PageBean<Brand> selectByPage(Integer index, Integer pageSize);

    //条件查询
    PageBean<Brand> selectByConditionAndPage(Brand brand, Integer index, Integer pageSize);
}
